package edu.noteBook.service;

import edu.noteBook.Pojo.Note;

import java.util.List;

public interface NoteService {
    boolean addNote(Note note);
    boolean deleteNote(Integer id);
    boolean updateNote(Note note);
    Note queryNoteById(Integer id);
    List<Note> queryNoteByTitle(String title);
    List<Note> queryAllNote(Integer offset , Integer limit);
    List<Note> queryAllNote1(Integer offset , Integer limit, Integer username);
    List<Note> queryNoteByType(Integer type);
}
